package com.aia.prm.web.ria.app.ui.config;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.cfh.domain.Config;
import com.vaadin.data.util.BeanItemContainer;

@SuppressWarnings("serial")
class ConfigContainer extends BeanItemContainer<Config> implements Serializable {
	public static final Object[] NATURAL_COL_ORDER = new Object[] { "CFG_TYPE", "CFG_CODE", "CFG_VALUE", "CFG_DESC" };

	public static final String[] COL_HEADERS_SHOW = new String[] { "类型", "代码", "值", "描述" };

	public static final Map<String, String> FIELD_NAME_MAP = new HashMap<String, String>();

	static {
		FIELD_NAME_MAP.put("CFG_TYPE", "类型");
		FIELD_NAME_MAP.put("CFG_CODE", "代码");
		FIELD_NAME_MAP.put("CFG_VALUE", "值");
		FIELD_NAME_MAP.put("CFG_DESC", "描述");
	}

	public ConfigContainer() throws InstantiationException, IllegalAccessException {
		super(Config.class);
	}
}